package com.fanglin.approval.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fanglin.material.po.MaterialItemPO;

@Entity
@Table(name = "approvalmaterialrefunditem", catalog = "approval")
public class ApprovalMaterialRefundItemPO implements java.io.Serializable {

	private static final long serialVersionUID = 7616304742054234800L;
	
	public static final String COLUMN_AMRID_STR = "amrId";

	private int amriId;
	
	private int amrId;
	
	private long mid;
	
	private float num;
	
	private float total;
	
	private String packageName;
	
	private MaterialItemPO materialItem;

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "amriId")
	public int getAmriId() {
		return this.amriId;
	}

	public void setAmriId(int amriId) {
		this.amriId = amriId;
	}

	@Column(name = "amrId")
	public int getAmrId() {
		return this.amrId;
	}

	public void setAmrId(int amrId) {
		this.amrId = amrId;
	}

	@Column(name = "mid")
	public long getMid() {
		return mid;
	}

	public void setMid(long mid) {
		this.mid = mid;
	}

	@Column(name = "num")
	public float getNum() {
		return this.num;
	}

	public void setNum(float num) {
		this.num = num;
	}

	@Column(name = "total")
	public float getTotal() {
		return this.total;
	}

	public void setTotal(float total) {
		this.total = total;
	}

	@Column(name = "packageName")
	public String getPackageName() {
		return this.packageName;
	}

	public void setPackageName(String packageName) {
		this.packageName = packageName;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "miid", referencedColumnName="miid")
	public MaterialItemPO getMaterialItem() {
		return materialItem;
	}

	public void setMaterialItem(MaterialItemPO materialItem) {
		this.materialItem = materialItem;
	}
	
}